export default {
  getList: config => {
    const ret = [
      {
        id: '1',
        shortName: '',
        level: '',
        orgType: '',
        status: '',
        type: ''
      },
      {
        id: '2',
        shortName: '',
        level: '',
        orgType: '',
        status: '',
        type: ''
      }
    ]
    console.info(ret.length)
    return {
      total: 31,
      items: ret
    }
  },
  getTree() {
    return [{
      label: '机构1',
      id: 1,
      children: [{
        id: 11,
        label: '机构1.1',
        children: [{
          id: 111,
          label: '机构1.1.1'
        }]
      }]
    }, {
      label: '机构2',
      id: 2,
      children: [{
        label: '机构2.1',
        id: 21,
        children: [{
          id: 211,
          label: '机构2.1.1'
        }]
      }, {
        id: 22,
        label: '机构2.2',
        children: [{
          id: 221,
          label: '机构2.2.1'
        }]
      }]
    }]
  },
  createOrg: config => {
    return { code: '11', data: { id: '333' }}
  }
}
